// 本地 cookie 存储的 token 的 key
import Cookies from 'js-cookie'

 // 实现无感刷新token ===>  https://juejin.cn/post/7170278285274775560#heading-10
export function getToken () {
    return Cookies.get('TokenKey')
}

export function setToken (token) {
    console.log(token,'token');
    return Cookies.set('TokenKey', token)
}


export function removeToken () {
    return Cookies.remove('TokenKey')
}

